package com.ruoyi.lxy.service;

import cn.hutool.core.date.DateTime;
import com.ruoyi.lxy.domain.TRoute;
import com.ruoyi.lxy.domain.vo.TBulletinVo;
import com.ruoyi.lxy.domain.vo.TRouteVo;
import com.ruoyi.lxy.domain.bo.TRouteBo;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.core.domain.PageQuery;
import com.ruoyi.lxy.domain.vo.TTravelagenVo;

import java.util.Collection;
import java.util.List;

/**
 * 路线Service接口
 *
 * @author ruoyi
 * @date 2023-08-24
 */
public interface ITRouteService {

    /**
     * 查询路线
     */
    TRouteVo queryById(Long id);

    /**
     * 查询路线列表
     */
    TableDataInfo<TRouteVo> queryPageList(TRouteBo bo, PageQuery pageQuery);
    /**
     * 旅行社查询路线列表
     */
    TableDataInfo<TRouteVo> TravelagenqueryPageList(TRouteBo bo, PageQuery pageQuery,boolean isBefore);
    TableDataInfo<TRouteVo> TravelagenqueryPageListformerly(TRouteBo bo, PageQuery pageQuery);
    TableDataInfo<TRouteVo> AdminqueryPageList(TRouteBo bo, PageQuery pageQuery);
    /**
     * 管理员查询路线列表-满意度查看
     */
    TableDataInfo<TRouteVo> AdminqueryPageListGrade(TRouteBo bo, PageQuery pageQuery);

    /**
     * 用户查询路线列表
     */

    public TableDataInfo<TRouteVo> UserqueryPageList(TRouteBo bo, PageQuery pageQuery);

    /**
     * 查询路线列表
     */
    List<TRouteVo> queryList(TRouteBo bo);

    /**
     * 管理员新增路线
     */
    Boolean insertByBo(TRouteBo bo);
    /**
     * 旅行社新增路线
     */
    public Boolean TravelagenqueryinsertByBo(TRouteBo bo);
    Boolean TravelagenAddBeforeRoute(Long[] ids);
    /**
     * 旅行社修改路线
     */
    public Boolean TravelagenqueryupdateByBo(TRouteBo bo);
    /**
     * 旅行社提交过往路线
     */
    public Boolean TravelagenquerysubmitByBo(TRouteBo bo);


    /**
     * 修改路线
     */
    Boolean updateByBo(TRouteBo bo);

    /**
     * 校验并批量删除路线信息
     */
    Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid);
    Boolean submitWithValidByIds(Collection<Long> ids, Boolean isValid);
    /**
     * 旅行社删除路线
     */

    Boolean TravelagenquerydeleteWithValidByIds(Collection<Long> ids, Boolean isValid);

    List<TRouteVo> getPicIds(Collection<Long> ids, Boolean isValid);

    //判断路线是否存在
    Boolean CheckRouteExist(Long projectId);

    TableDataInfo<TRouteVo> voteQueryPageList(TRouteBo bo, PageQuery pageQuery);

    TRouteVo satisfactionResult(Long routeId);
}
